package com.blog.common.constant;

/**
 * @author: chengqiang
 * @date: 2018/12/6 13:03
 */
public enum ResponseCode {
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "ERROR"),
    UNKNOW_ERROR(501,"UNKNOW_ERROR");

    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}